//
//  giftModel.m
//  linktuIOS
//
//  Created by apple on 16/5/11.
//  Copyright © 2016年 张伟. All rights reserved.
//

#import "giftModel.h"

@implementation giftModel

-(void)setnowtime
{
    NSTimeInterval nowtime = [[NSDate date]timeIntervalSince1970];
    if(self.oldtime == 0)
    {
        self.number = 1;
    }else{
    
    if((nowtime - self.oldtime) > 5)
    {
        self.number = 1;
    }else
    {
        self.number ++;
    }
    }
    self.oldtime = nowtime;
}
@end
